Optimal. Leaf size=53 \[ -\frac {a}{2 x^2}+\frac {1}{2} b d \cos (c) \text {Ci}\left (d x^2\right )-\frac {1}{2} b d \sin (c) \text {Si}\left (d x^2\right )-\frac {b \sin \left (c+d x^2\right )}{2 x^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {14, 3379, 3297, 3303, 3299, 3302} \[ -\frac {a}{2 x^2}+\frac {1}{2} b d \cos (c) \text {CosIntegral}\left (d x^2\right )-\frac {1}{2} b d \sin (c) \text {Si}\left (d x^2\right )-\frac {b \sin \left (c+d x^2\right )}{2 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 3297
Rule 3299
Rule 3302
Rule 3303
Rule 3379
Rubi steps
\begin {align*} \int \frac {a+b \sin \left (c+d x^2\right )}{x^3} \, dx &=\int \left (\frac {a}{x^3}+\frac {b \sin \left (c+d x^2\right )}{x^3}\right ) \, dx\\ &=-\frac {a}{2 x^2}+b \int \frac {\sin \left (c+d x^2\right )}{x^3} \, dx\\ &=-\frac {a}{2 x^2}+\frac {1}{2} b \operatorname {Subst}\left (\int \frac {\sin (c+d x)}{x^2} \, dx,x,x^2\right )\\ &=-\frac {a}{2 x^2}-\frac {b \sin \left (c+d x^2\right )}{2 x^2}+\frac {1}{2} (b d) \operatorname {Subst}\left (\int \frac {\cos (c+d x)}{x} \, dx,x,x^2\right )\\ &=-\frac {a}{2 x^2}-\frac {b \sin \left (c+d x^2\right )}{2 x^2}+\frac {1}{2} (b d \cos (c)) \operatorname {Subst}\left (\int \frac {\cos (d x)}{x} \, dx,x,x^2\right )-\frac {1}{2} (b d \sin (c)) \operatorname {Subst}\left (\int \frac {\sin (d x)}{x} \, dx,x,x^2\right )\\ &=-\frac {a}{2 x^2}+\frac {1}{2} b d \cos (c) \text {Ci}\left (d x^2\right )-\frac {b \sin \left (c+d x^2\right )}{2 x^2}-\frac {1}{2} b d \sin (c) \text {Si}\left (d x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 48, normalized size = 0.91 \[ -\frac {a-b d x^2 \cos (c) \text {Ci}\left (d x^2\right )+b d x^2 \sin (c) \text {Si}\left (d x^2\right )+b \sin \left (c+d x^2\right )}{2 x^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.79, size = 65, normalized size = 1.23 \[ -\frac {2 \, b d x^{2} \sin \relax (c) \operatorname {Si}\left (d x^{2}\right ) - {\left (b d x^{2} \operatorname {Ci}\left (d x^{2}\right ) + b d x^{2} \operatorname {Ci}\left (-d x^{2}\right )\right )} \cos \relax (c) + 2 \, b \sin \left (d x^{2} + c\right ) + 2 \, a}{4 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.59, size = 99, normalized size = 1.87 \[ \frac {{\left (d x^{2} + c\right )} b d^{2} \cos \relax (c) \operatorname {Ci}\left (d x^{2}\right ) - b c d^{2} \cos \relax (c) \operatorname {Ci}\left (d x^{2}\right ) - {\left (d x^{2} + c\right )} b d^{2} \sin \relax (c) \operatorname {Si}\left (d x^{2}\right ) + b c d^{2} \sin \relax (c) \operatorname {Si}\left (d x^{2}\right ) - b d^{2} \sin \left (d x^{2} + c\right ) - a d^{2}}{2 \, d^{2} x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 47, normalized size = 0.89 \[ -\frac {a}{2 x^{2}}+b \left (-\frac {\sin \left (d \,x^{2}+c \right )}{2 x^{2}}+d \left (\frac {\cos \relax (c ) \Ci \left (d \,x^{2}\right )}{2}-\frac {\sin \relax (c ) \Si \left (d \,x^{2}\right )}{2}\right )\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 2.45, size = 57, normalized size = 1.08 \[ \frac {1}{4} \, {\left ({\left (\Gamma \left (-1, i \, d x^{2}\right ) + \Gamma \left (-1, -i \, d x^{2}\right )\right )} \cos \relax (c) - {\left (i \, \Gamma \left (-1, i \, d x^{2}\right ) - i \, \Gamma \left (-1, -i \, d x^{2}\right )\right )} \sin \relax (c)\right )} b d - \frac {a}{2 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {a+b\,\sin \left (d\,x^2+c\right )}{x^3} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {a + b \sin {\left (c + d x^{2} \right )}}{x^{3}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________